//
//  AllMusicModel.m
//  悦享
//
//  Created by dllo on 16/3/18.
//  Copyright © 2016年 张洪国. All rights reserved.
//

#import "AllMusicModel.h"
#import "ChildrenModel.h"
@implementation AllMusicModel

- (void)setValue:(id)value forKey:(NSString *)key {
    
    [super setValue:value forKey:key];
    
    self.childrenArr = [NSMutableArray array];
    if ([key isEqualToString:@"children"]) {
        for (NSDictionary *tempDic in value) {
            ChildrenModel *model = [[ChildrenModel alloc] init];
            [model setValuesForKeysWithDictionary:tempDic];
            [_childrenArr addObject:model];
        }
    }
    
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
    
    
}

@end
